import { Controller, Get, UseGuards } from '@nestjs/common';
import { MicrosoftBearerGuard } from 'src/auth/microsoft-bearer.guard';
import { CityService } from './city.service';

@Controller('city')
export class CityController {
  constructor(private readonly cityService: CityService) {}

  @Get('getAll')
  @UseGuards(MicrosoftBearerGuard)
  async getAll() {
    return await this.cityService.getAll();
  }
}
